<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
	<title>审批管理-我审批的审批</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>libs/bootstrap-3.3.7-dist/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/reset.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/style.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/iframe.css">
</head>
<body>
	<header id="mainHeader"></header>
	<div id="mainContent">
		<div id="mainContent_content">
			<div class="page_header"><a>我审批的审批</a></div>
			<div class="search">
			<form action="<%=basePath %>${page.pageUrl }" method="post" class="form">
				<input type="hidden" name="currentPage" value="1">
				<p>
						<label>审批类型</label>
						<select name="auditType" class="form-control select" >
							<option value="">全部</option>
							<option value="1" <c:if test="${page.auditType==1 }">selected</c:if>>采购申请</option>
							<option value="2" <c:if test="${page.auditType==2 }">selected</c:if>>采购订单</option>
							<option value="3" <c:if test="${page.auditType==3 }">selected</c:if>>退货申请</option>
						</select>
						<label>申请单号</label>
						<input type="text" name="applicationNo" value="${page.applicationNo }" class="form-control"></input>
						<label>审批结果</label>
						<select name="status" class="form-control select">
							<option value="">全部</option>
							<option value="0" <c:if test="${page.result==1 }">selected</c:if>>通过</option>
							<option value="1" <c:if test="${page.result==2 }">selected</c:if>>拒绝</option>
						</select>
					<span class="btn">
						<input type="submit" value="搜索" class="btn btn1"></input>
					</span>
				</p>
			</form>
			</div>
			<div class="tableBox box">
				<table class="table table-bordered table_text_center">
					<thead>
						<tr>
							<th>审批类型</th>
							<th>申请单号</th>
							<th>申请人</th>
							<th>状态</th>
						</tr>
					</thead>
					<tbody>
					<c:forEach items="${auditList}" var="audit"> 
						<tr>
						<td>
							<c:if test="${audit.auditType==1}">采购申请</c:if>
							<c:if test="${audit.auditType==2}">采购订单</c:if>
							<c:if test="${audit.auditType==3}">退货申请</c:if>
						</td>
						<td>${audit.applicationNo }</td>
						<td>${audit.applicantName}</td>
						<td>
							<c:if test="${audit.result==0}">通过</c:if>
							<c:if test="${audit.result==1}">拒绝</c:if>
						</td>
						</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
			<jsp:include page="/jsp/basic/page.jsp"></jsp:include>
		</div>
		<jsp:include page="/jsp/basic/prompt.jsp"></jsp:include>
	</div>
	<script src="<%=basePath %>js/jquery-3.2.1.min.js"></script>
	<script src="<%=basePath %>libs/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
	<script src="<%=basePath %>My97DatePickers/WdatePicker.js"></script>
	<script src="<%=basePath %>js/public.js"></script>
</body>
</html>